#include "client.hpp"

void Usage(const std::string& proc)
{
    std::cout << "\n\t" << proc << " clientIp clientPort" << std::endl;
}

int main(int argc,char* argv[])
{
    if(argc != 3)
    {
        Usage(argv[0]);
        exit(USERERR);
    }

    std::string serverIp = argv[1];
    uint16_t serverPort = atoi(argv[2]);
    ns_client* client = new ns_client(serverIp,serverPort);
    client->init();
    client->Start();
    delete client;
    
    return 0;
}
